home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Utilities / Programming / PowerReplace 5.0 / Documentation / 4. FAQ < prev    next >
Encoding:
Text File  |  1996-06-03  |  1.6 KB  |  56 lines  |  [ttro/ttxt]

  1.  
  2. PowerReplace  •4• F.A.Q.
  3. (version 5.0, 1996.6.3) 
  4. _________________________________________________________________
  5. About filter file
  6.  
  7. [Q1] I would like to replace é by é for converting my text into HTML format. How to do it?
  8. - It's enough to add the following line in your filter-file:
  9.     "é"           "é"
  10.  
  11. [Q2] Now I would like to do exactly the opposite, it means replace é by é how about it ?
  12. - This time the following line:
  13.     "é"    "é" 
  14.  
  15. [Q3] How to replace %22 by " (quotation marks)?
  16. - You must use the  special character \" adding the following line:
  17.      "%22"        "\""
  18.  
  19. [Q4] OK. But sometimes my text editor cut a word into two for separating two lines as  %2-2 and %-22, how to correct it?
  20. - Add the following lines :
  21.     "%2\n2" "\"" 
  22.     "%2\r2" "\"" 
  23.     "%\n22" "\"" 
  24.     "%\r22" "\"" 
  25.  
  26. [Q5] How to remove all words beginning with def?
  27. - Use pattern. 
  28.     'def[a-zA-Zàâäéèêëçùüôö]*'  ""
  29.  
  30. [Q6] How to remove a line beginning with % (TeX comment)?
  31. [R] 
  32.     "%*\r"   "\r"
  33.     "%*\n"   "\n"
  34.  
  35. [Q7] How to remove all mathmatical formulas in a TeX file?
  36. -
  37.     "$$*$$"    ""
  38.     "$*$"      ""
  39.  
  40. [Q8] I would like to replace ef by EF, except ef in def?
  41. - There is an astute method:
  42.     "def"      "my_save"
  43.     "ef"       "EF"
  44.     "my_save"  "def" 
  45.  
  46. [Q9] How to replace \alpha by æ (in a TeX file for example)?
  47. - (Don’t forget that there is perhaps \alphabet in the text file). Use pattern and meta.
  48.     #meta        "/"
  49.     '\alpha[^a-zA-Z]'  "æ"
  50.  
  51. _________________________
  52. Guoniu Han
  53. email: guoniu@math.u-strasbg.fr
  54. http://130.79.4.26/~guoniu/mac/
  55. _________________________
  56.